package com.efast.cafe.commponent.crud.service;


import java.io.File;
import java.util.List;
import java.util.Map;

import org.apache.poi.xssf.usermodel.XSSFSheet;

import com.efast.cafe.portal.bean.common.AttachmentFormBean;
import com.efast.cafe.portal.bean.common.EntityInfoBean;
import com.efast.cafe.portal.entity.common.PortalMultiEntityBean;


public interface ICrudV2Service{

	public Integer crudInsert(String tableName, Map<String, Object> param, AttachmentFormBean attachments);

	public void crudUpdate(String tableName, Map<String, Object> param, AttachmentFormBean attachments);
	
	public List<Integer> crudInsert(Map<String, Object> t1,Map<String, Object> t2);
	
	public void crudUpdate(List<Map<String, Object>> list);

	public void crudDelete(String tableName, Map<String, Object> param);

	public Object crudFindById(String tableName, Map<String, Integer> map);

	public void multiEntityInsert(String tableName, PortalMultiEntityBean portalMultiEntityBean);

	public void crudImport(String entityName, File uploadFile, Map<String, String> maps, Map<String, Object> maps1, List<Map<String, Object>> importConfig);


	public void crudImportMulti(EntityInfoBean entityName, XSSFSheet sheet, Map<String, String> maps, Map<String, Object> maps1, List<Map<String, Object>> importConfig);

}
